Optimal. Leaf size=139 \[ \frac {2 (g+h x)^{3/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{3 h}+\frac {4 b p q (f g-e h)^{3/2} \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right )}{3 f^{3/2} h}-\frac {4 b p q \sqrt {g+h x} (f g-e h)}{3 f h}-\frac {4 b p q (g+h x)^{3/2}}{9 h} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.18, antiderivative size = 139, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.179, Rules used = {2395, 50, 63, 208, 2445} \[ \frac {2 (g+h x)^{3/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{3 h}+\frac {4 b p q (f g-e h)^{3/2} \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right )}{3 f^{3/2} h}-\frac {4 b p q \sqrt {g+h x} (f g-e h)}{3 f h}-\frac {4 b p q (g+h x)^{3/2}}{9 h} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 50
Rule 63
Rule 208
Rule 2395
Rule 2445
Rubi steps
\begin {align*} \int \sqrt {g+h x} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \, dx &=\operatorname {Subst}\left (\int \sqrt {g+h x} \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right ) \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {2 (g+h x)^{3/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{3 h}-\operatorname {Subst}\left (\frac {(2 b f p q) \int \frac {(g+h x)^{3/2}}{e+f x} \, dx}{3 h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=-\frac {4 b p q (g+h x)^{3/2}}{9 h}+\frac {2 (g+h x)^{3/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{3 h}-\operatorname {Subst}\left (\frac {(2 b (f g-e h) p q) \int \frac {\sqrt {g+h x}}{e+f x} \, dx}{3 h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=-\frac {4 b (f g-e h) p q \sqrt {g+h x}}{3 f h}-\frac {4 b p q (g+h x)^{3/2}}{9 h}+\frac {2 (g+h x)^{3/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{3 h}-\operatorname {Subst}\left (\frac {\left (2 b (f g-e h)^2 p q\right ) \int \frac {1}{(e+f x) \sqrt {g+h x}} \, dx}{3 f h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=-\frac {4 b (f g-e h) p q \sqrt {g+h x}}{3 f h}-\frac {4 b p q (g+h x)^{3/2}}{9 h}+\frac {2 (g+h x)^{3/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{3 h}-\operatorname {Subst}\left (\frac {\left (4 b (f g-e h)^2 p q\right ) \operatorname {Subst}\left (\int \frac {1}{e-\frac {f g}{h}+\frac {f x^2}{h}} \, dx,x,\sqrt {g+h x}\right )}{3 f h^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=-\frac {4 b (f g-e h) p q \sqrt {g+h x}}{3 f h}-\frac {4 b p q (g+h x)^{3/2}}{9 h}+\frac {4 b (f g-e h)^{3/2} p q \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right )}{3 f^{3/2} h}+\frac {2 (g+h x)^{3/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{3 h}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.19, size = 124, normalized size = 0.89 \[ \frac {2 \left (\sqrt {f} \sqrt {g+h x} \left (3 a f (g+h x)+3 b f (g+h x) \log \left (c \left (d (e+f x)^p\right )^q\right )-2 b p q (-3 e h+4 f g+f h x)\right )+6 b p q (f g-e h)^{3/2} \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right )\right )}{9 f^{3/2} h} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.52, size = 353, normalized size = 2.54 \[ \left [-\frac {2 \, {\left (3 \, {\left (b f g - b e h\right )} p q \sqrt {\frac {f g - e h}{f}} \log \left (\frac {f h x + 2 \, f g - e h - 2 \, \sqrt {h x + g} f \sqrt {\frac {f g - e h}{f}}}{f x + e}\right ) - {\left (3 \, a f g - 2 \, {\left (4 \, b f g - 3 \, b e h\right )} p q - {\left (2 \, b f h p q - 3 \, a f h\right )} x + 3 \, {\left (b f h p q x + b f g p q\right )} \log \left (f x + e\right ) + 3 \, {\left (b f h x + b f g\right )} \log \relax (c) + 3 \, {\left (b f h q x + b f g q\right )} \log \relax (d)\right )} \sqrt {h x + g}\right )}}{9 \, f h}, \frac {2 \, {\left (6 \, {\left (b f g - b e h\right )} p q \sqrt {-\frac {f g - e h}{f}} \arctan \left (-\frac {\sqrt {h x + g} f \sqrt {-\frac {f g - e h}{f}}}{f g - e h}\right ) + {\left (3 \, a f g - 2 \, {\left (4 \, b f g - 3 \, b e h\right )} p q - {\left (2 \, b f h p q - 3 \, a f h\right )} x + 3 \, {\left (b f h p q x + b f g p q\right )} \log \left (f x + e\right ) + 3 \, {\left (b f h x + b f g\right )} \log \relax (c) + 3 \, {\left (b f h q x + b f g q\right )} \log \relax (d)\right )} \sqrt {h x + g}\right )}}{9 \, f h}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {h x + g} {\left (b \log \left (\left ({\left (f x + e\right )}^{p} d\right )^{q} c\right ) + a\right )}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.35, size = 0, normalized size = 0.00 \[ \int \sqrt {h x +g}\, \left (b \ln \left (c \left (d \left (f x +e \right )^{p}\right )^{q}\right )+a \right )\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \sqrt {g+h\,x}\,\left (a+b\,\ln \left (c\,{\left (d\,{\left (e+f\,x\right )}^p\right )}^q\right )\right ) \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 5.69, size = 144, normalized size = 1.04 \[ \frac {2 \left (\frac {a \left (g + h x\right )^{\frac {3}{2}}}{3} + b \left (- \frac {2 f p q \left (\frac {h \left (g + h x\right )^{\frac {3}{2}}}{3 f} + \frac {\sqrt {g + h x} \left (- e h^{2} + f g h\right )}{f^{2}} + \frac {h \left (e h - f g\right )^{2} \operatorname {atan}{\left (\frac {\sqrt {g + h x}}{\sqrt {\frac {e h - f g}{f}}} \right )}}{f^{3} \sqrt {\frac {e h - f g}{f}}}\right )}{3 h} + \frac {\left (g + h x\right )^{\frac {3}{2}} \log {\left (c \left (d \left (e - \frac {f g}{h} + \frac {f \left (g + h x\right )}{h}\right )^{p}\right )^{q} \right )}}{3}\right )\right )}{h} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________